/**
 * Project Reactor
 */


#ifndef _INETADDRESS_H
#define _INETADDRESS_H

#include <string>
#include <my_header.h>
using std::string;
    
class InetAddress {
private:
    struct sockaddr_in m_addr;
public: 
/**
 * @param ip
 * @param port
 */
InetAddress(const string & ip, unsigned short port);
    
/**
 * @param addr
 */
InetAddress(const struct sockaddr_in & addr);
    
~InetAddress();
    
string getIP();
    
unsigned short getPort();
    
struct sockaddr_in * getInetAddressPtr();
};

#endif //_INETADDRESS_H